package com.xf.common.core.authe;

import com.xf.common.core.domain.PassWordToken;
import com.xf.common.core.domain.TokenInfo;

/**
 * @author JoeyLiu
 * @create 2022-04-01 18:21
 */
public interface Oauth2Service {
    /**
     * 密码模式登录
     *
     * @param token
     * @return
     */
    TokenInfo login(PassWordToken token) throws Exception;

    /**
     * 刷新token
     *
     * @param passwordToken
     * @return
     */
    TokenInfo refresh(String passwordToken) throws Exception;
}
